Test rest viewer
Instant Search Proxy
Optimaliseer indexbeheer met ons ProxyIndex model. Beheer moeiteloos index-aliassen, sjablonen en filters voor verbeterde zoek- en filtermogelijkheden. Verken deze documentatie om de efficiƫntie van de API te maximaliseren.
alias
stringThe index alias
template
objectresults_per_page
integerThe number of results per page for this index
filters
array[ProxyIndexFilter] {
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
List instant Search proxies
De listInstantProxies operatie is een GET API-endpoint dat een lijst van zoekmachines ophaalt voor een specifieke huurder. Het ondersteunt optionele paginering, geeft gedetailleerde proxy-objecten terug bij succes, en levert uitgebreide foutinformatie bij falen. Deze snelheid-beperkte operatie vereist authenticatie met een bearer token en is ontworpen voor openbare blootstelling.
page[size]
integerpage[after]
stringkey
stringThe unique key of the proxy
filters
objectis_autocomplete
booleanWhether or not this search engine is used as an autocomplete search
click_tracking
objectindexes
array[ProxyIndex]created_at
integerint64
updated_at
integerint64
curl https://afosto.app/api/instant/proxies
-X GET
-H "Authorization: Bearer {token}"
{
"data": [
{
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
}
],
"page": {
"first": "https://afosto.app/api/instant/proxies",
"next": "https://afosto.app/api/instant/proxies?page[after]=Nne9H5q3ZuddquhTrkGCImjN5",
"after": "Nne9H5q3ZuddquhTrkGCImjN5",
"previous": "https://afosto.app/api/instant/proxies?page[after]=Nne9H5q3ZuddquhTrkGCImjN5",
"before": "Nne9H5q3ZuddquhTrkGCImjN5"
}
}
Create proxy
key
stringRequiredThe unique key of the proxy
filters
objectis_autocomplete
booleanWhether or not this search engine is used as an autocomplete search
click_tracking
objectindexes
array[ProxyIndex]key
stringThe unique key of the proxy
filters
objectis_autocomplete
booleanWhether or not this search engine is used as an autocomplete search
click_tracking
objectindexes
array[ProxyIndex]created_at
integerint64
updated_at
integerint64
curl https://afosto.app/api/instant/proxies
-X POST
-d '{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
]
}
}'
-H "Content-Type: application/json"
-H "Authorization: Bearer {token}"
{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
},
"page": {}
}
View proxy
id
stringRequiredkey
stringThe unique key of the proxy
filters
objectis_autocomplete
booleanWhether or not this search engine is used as an autocomplete search
click_tracking
objectindexes
array[ProxyIndex]created_at
integerint64
updated_at
integerint64
curl https://afosto.app/api/instant/proxies/{id}
-X GET
-H "Authorization: Bearer {token}"
{
"data": {
"key": "afosto",
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
],
"created_at": null,
"updated_at": null
},
"page": {}
}
Update proxy
filters
objectis_autocomplete
booleanWhether or not this search engine is used as an autocomplete search
click_tracking
objectindexes
array[ProxyIndex]Requiredid
stringRequiredcurl https://afosto.app/api/instant/proxies/{id}
-X PUT
-d '{
"data": {
"filters": {
"show_for": "products",
"sorting": [
"category",
"price"
],
"options_count": 5,
"max_options_count": 25
},
"is_autocomplete": null,
"click_tracking": {
"is_enabled": null
},
"indexes": [
{
"alias": "products",
"template": {
"name": null,
"mapping": [
{}
]
},
"results_per_page": 10,
"filters": [
{
"key": "category",
"options_count": 10,
"max_options_count": 10
}
]
}
]
}
}'
-H "Content-Type: application/json"
-H "Authorization: Bearer {token}"
Delete proxy
id
stringRequiredcurl https://afosto.app/api/instant/proxies/{id}
-X DELETE
-H "Authorization: Bearer {token}"